import request from '@/utils/request'

// 查询分析数据集
export function analysisList(data) {
  return request({
    url:  '/analysis/dataset/list',
    method: 'POST',
    data,
  })
}

// 查询分析数据集-匿名接口
export function analysisAnonymousList(data) {
  return request({
    url:  '/analysis/dataset/listAnonymous',
    method: 'POST',
    data,
  })
}

// 新增分析数据集
export function addanalysis(data) {
    return request({
      url:  '/analysis/dataset/add',
      method: 'POST',
      data,
    })
}

// 删除分析数据集
export function delanalysis(url) {
    return request({
      url:  '/analysis/dataset/'+url,
      method: 'DELETE',
    })
}

// 删除分析数据集
export function editanalysis(data) {
    return request({
      url:  '/analysis/dataset/edit',
      method: 'POST',
      data,
    })
}